package com.bjpowernode.crm.workbench.web.controller;

import com.bjpowernode.crm.workbench.domain.FunnelVO;
import com.bjpowernode.crm.workbench.service.TranService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @ClassName : ChartController
 * @Author : 司猫子
 * @Date: 2021/1/13 21:43
 */
@Controller
public class ChartController {
    @Autowired
    private TranService tranService;
    @ResponseBody
    @RequestMapping("/workench/chart/transaction/queryCountOfTranGroupByStage.do")
    public Object tranChart(){
        List<FunnelVO> funnelVOS = tranService.selectCountOfTranGroupByStage();
        return funnelVOS;
    }
    @RequestMapping("/workench/chart/transaction/index.do")
    public String totranChart(){

        return "workbench/chart/transaction/index";
    }
}
